/*
 * 对象是否未定义
 * 对象为null或者undefined都是未定义
 */
export function isUndef (obj) {
  return obj === undefined
}

export function getNow () {
  return window.performance && window.performance.now ? (window.performance.now() + window.performance.timing.navigationStart) : +new Date()
}
